﻿using System;
using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;

namespace EkStudio.com.bean.xml.BillReflect
{
    public class BillRefectDataNodeOutItem:BillObjectInterface
    {
        private string key = "";
        private string column = "";
        private string caption = "";
        private bool isDate = false;
        private string dateFormat = "yyyy-MM-dd";

        [Xml]
        public string Key
        {
            get { return key; }
            set { key = value; }
        }
        [Xml]
        public string Column
        {
            get { return column; }
            set { column = value; }
        }
        [Xml]
        public string Caption
        {
            get { return caption; }
            set { caption = value; }
        }
        [Xml]
        public bool IsDate
        {
            get { return isDate; }
            set { isDate = value; }
        }
        [Xml]
        public string DateFormat
        {
            get { return dateFormat; }
            set { dateFormat = value; }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public object Clone()
        {
            BillRefectDataNodeOutItem clone = new BillRefectDataNodeOutItem();
            clone.key = Key;
            clone.Caption = Caption;
            clone.Column = Column;
            clone.isDate = IsDate;
            clone.DateFormat = DateFormat;
            return clone;
        }
    }
}
